package com.tencreat.domain.pt.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@ApiModel("拼团开奖商品列表")
public class ResPtGoodsListPCVO {
    @ApiModelProperty("拼团id")
    private Long id;

    @ApiModelProperty(value = "拼团编号")
    private String ptSn;

    @ApiModelProperty("商品id")
    private Long goodsId;

    @ApiModelProperty("商品编号")
    private String goodsSn;

    @ApiModelProperty("商品名称")
    private String goodsName;

    @ApiModelProperty("商品图片")
    private String goodsPicUrl;

    @ApiModelProperty("期数")
    private Integer numberOfPeriods;

    @ApiModelProperty("专区名称")
    private String zoneName;

    @ApiModelProperty("商品价格")
    private BigDecimal goodsPrice;

    @ApiModelProperty("总参与人数")
    private Integer ptNumberP;

    @ApiModelProperty("实际参与人数")
    private Integer actualJoinNumber;

    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("本期结束时间")
    private LocalDateTime endGroupTime;

    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("开奖时间")
    private LocalDateTime drawTime;

    @ApiModelProperty("开奖状态")
    private Integer lotteryStatus;

    @ApiModelProperty("商品状态")
    private Integer goodsStarts;

    @ApiModelProperty("商品分类")
    private Integer goodsType;

    @ApiModelProperty(value = "是否已开启下一期 0未开启,1开启")
    private String startedNext;

    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("开奖时间")
    private LocalDateTime createTime;

}
